package com.sj.tensquare.web.vo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

/**
 * @author sj
 * @date 2020/12/14 - 18:28
 */
@Data
public class UserRegistVo {
    @NotEmpty(message = "用户名必须提交")
    @Length(min = 4,max = 11,message = "用户名必须是4-11位字符")
    private String loginUserName;
    @NotEmpty(message = "密码必须提交")
    @Length(min = 6,max = 16,message = "密码必须是6-16位字符")
    private String password;
    @Pattern(regexp = "^[1]([3-9])[0-9]{9}$",message = "手机格式不正确")
    private String mobile;//手机号
}
